home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
exampl_1
/
form1.frm
< prev
Wrap
Text File
|
1999-08-17
|
3KB
|
111 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3705
ClientLeft = 60
ClientTop = 345
ClientWidth = 2925
LinkTopic = "Form1"
ScaleHeight = 3705
ScaleWidth = 2925
StartUpPosition = 3 'Windows Default
Begin VB.CheckBox Check1
Caption = "Option 6"
Height = 255
Index = 5
Left = 120
TabIndex = 6
Top = 1320
Width = 1095
End
Begin VB.CheckBox Check1
Caption = "Option 5"
Height = 255
Index = 4
Left = 120
TabIndex = 5
Top = 1080
Width = 975
End
Begin VB.CommandButton Command1
Caption = "&Exit"
Height = 375
Left = 1560
TabIndex = 4
Top = 3240
Width = 1335
End
Begin VB.CheckBox Check1
Caption = "Option 4"
Height = 255
Index = 3
Left = 120
TabIndex = 3
Top = 840
Width = 1095
End
Begin VB.CheckBox Check1
Caption = "Option 3"
Height = 255
Index = 2
Left = 120
TabIndex = 2
Top = 600
Width = 975
End
Begin VB.CheckBox Check1
Caption = "Option 2"
Height = 255
Index = 1
Left = 120
TabIndex = 1
Top = 360
Width = 1095
End
Begin VB.CheckBox Check1
Caption = "Option 1"
Height = 255
Index = 0
Left = 120
TabIndex = 0
Top = 120
Value = 1 'Checked
Width = 1095
End
Begin VB.Label Label2
Caption = "Click in a option and other.The ckeckbox is similar to option button."
Height = 855
Left = 1320
TabIndex = 8
Top = 120
Width = 1455
End
Begin VB.Label Label1
Caption = "Tested by Juan Alberto G≤mez MΘxico D.F. gomezja@amstd.com gomezja@go.com gomezja@vbomail.com"
Height = 1335
Left = 480
TabIndex = 7
Top = 1680
Width = 1695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Check1_Click(Index As Integer)
Dim check As CheckBox
If Check1(Index).Value = 1 Then
For Each check In Check1
If check.Index <> Index Then check.Value = 0
Next
End If
End Sub